<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Expires" content="0">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-control" content="no-cache">
<meta http-equiv="Cache" content="no-cache">
<link href="js/bootstrap-combined.min.css" rel="stylesheet"
	media="screen">
	
	
<title>反馈系统</title>
<script type='text/javascript' src='dwr/interface/Methods.js'></script>
<script type='text/javascript' src='dwr/engine.js'></script>
<script type='text/javascript' src='dwr/util.js'></script>

<script src="http://cdn.bootcss.com/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery-ui"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript">
	/**初始化UI*/
	function initui() {
		//alert("iui");
		dwr.engine.setActiveReverseAjax(true);
		dwr.engine.setNotifyServerOnPageUnload(true, true);
		//ConsoleUIMethods.initUser();
		Methods.getOrderList();

	}

	function sel() {
		var selstate = document.getElementById("selstate").value;
		if (selstate == "true") {//做全选操作
			select_all();
			document.getElementById("selstate").value = "false";
		} else {
			noselect_all();
			document.getElementById("selstate").value = "true";
		}
	}
	function select_all() { //全选     
		var inputs = document.getElementsByTagName("input");
		for (var i = 0; i < inputs.length; i++) {
			if (inputs[i].getAttribute("type") == "checkbox") {
				inputs[i].checked = true;
			}
		}
	}
	function noselect_all() { //全不选     
		var inputs2 = document.getElementsByTagName("input");
		for (var i = 0; i < inputs2.length; i++) {
			if (inputs2[i].getAttribute("type") == "checkbox") {
				inputs2[i].checked = false;
			}
		}
	}
	function msgparam(id) {

		$('#myModal').on('show.bs.modal', function(event) {
			var button = $(event.relatedTarget); // Button that triggered the modal
			var recipient = button.data('whatever'); // Extract info from data-* attributes

			var modal = $(this)
			modal.find('.modal-title').text('New message to ' + recipient);
			modal.find('.body input').val(recipient);
		});

	}

	function dlview(odid) {
		//alert("dlview");
		var downloadurl = Methods.getDownloadURL(odid);

	}
	function dlview2(dlurl) {
		if (dlurl == "-1") {
			alert("没有找到文件！");
		} else {
			window
					.open(
							'download.jsp?isview=true&dlurl=' + dlurl,
							"download",
							'toolbar=no,menubar=no,scrollbars=no, resizable=yes,location=no, status=no',
							true);

		}
	}
</script>

<style>
body {
	padding-top: 0px;
}

.starter-template {
	padding: 0px px;
	text-align: center;
}

table.table-fixed-head .table-fixed-head-thead {
	border-bottom: 1px solid #dddddd;
	background: #fff;
}

#title{ position:fixed; *position:absolute; width:100%;  top:0; left:0; margin:0 0 0 0;}
#bt{ position:fixed; *position:absolute; width:100%;  bottom:0; left:0; margin:0 0 0 0;}
</style>

</head>
<body style="background-color:#F5F5F5" onload="initui();">
	<input type="hidden" id="selstate" name="selstate" value="true" />
	<div class="row-fluid">

				
				
			<table style="table-layout:fixed;" border="0" id="odtable"
				class="table table-responsive table-striped table-hover">
				<thead style="background-color:#F5F5F5;width:100%">
					<tr>
						<th style="width:2.41%"><input onclick="sel()"
							type="checkbox" /></th>
						<th style="width:4.13%;text-align:center">编号</th>
						<th style="width:7.50%;text-align:center;">姓名/ID</th>
						<th style="width:14.10%;text-align:center">时间</th>
						<th style="width:35.45%;text-align:center">内容</th>
						<th style="width:8.62%;text-align:center">回复消息</th>
						<th style="width:8.62%;text-align:center">附件</th>
						<th style="width:5.17%;text-align:center">状态</th>
						<th style="width:14.00%;text-align:center">操作</th>
					</tr>
				</thead>
				<tbody id="odlist">



				</tbody>
			</table>


			<div class="modal fade" id="myModal" data-remote="msg.jsp"
				tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
				aria-hidden="true"></div>
				
			<table id="title"  border="0" class="table table-responsive">
				<thead style="background-color:#D3CCCC;width:100%">
					<tr>
						<th style="width:2.41%;text-align:center"><input onclick="sel()"
							type="checkbox" /></th>
						<th style="width:4.13%;text-align:center">编号</th>
						<th style="width:7.50%;text-align:center;">姓名/ID</th>
						<th style="width:14.10%;text-align:center">时间</th>
						<th style="width:35.45%;text-align:center">内容</th>
						<th style="width:8.62%;text-align:center">回复消息</th>
						<th style="width:8.62%;text-align:center">附件</th>
						<th style="width:5.17%;text-align:center">状态</th>
						<th style="width:14.00%;text-align:center">操作</th>
					</tr>
				</thead>
				</table>
				<br/>
		
				<table id="bt" style="width:100%"   border="0"  class="table table-condensed table-responsive">
				<thead style="background-color:#F5F5F5;width:100%">
					<tr>
						<th style="width:2.41%;text-align:center"><input onclick="sel()"
							type="checkbox" /></th>
						<th style="width:45%;text-align:left">
						<button id='plzf' class='btn btn-lg'>批量作废</button>
                        <button id='plwc' class='btn btn-lg'>批量完成</button>
                        <button id='plcq' class='btn btn-lg'>批量重启</button>
                        <button id='plcq' class='btn btn-lg'>导出选中</button>
                        <button id='plcq' class='btn btn-lg'>导出全部</button>
                        </th>
						<th style="width:52.59%;text-align:right">
						
						</th>
					</tr>
				</thead>
				</table>	
				</div>

	

</body>
</html>